#pragma once
#include<iostream>
using namespace std;

class Singleton {
private:
	Singleton() {}
	static Singleton* instance;

public:
	~Singleton()
	{
		cout << "singleton relese" << endl;
	}
	static Singleton* Get() {
		if (instance == nullptr)
			instance = new Singleton();
		return instance;
	}
};

Singleton* Singleton::instance = nullptr;